package com.zhengjiang.nacos.consumer.feign;


import com.zhengjiang.nacos.consumer.model.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "order-service")
public interface OrderServiceClient {

    @PostMapping("/order/submit")
    String submitOrder(@RequestBody Order order);
}
